import React from 'react'
import { useSearchParams, useParams } from "react-router-dom"
export default function Acc() {
    // 路由search传参
    // let [parms, setParms] = useSearchParams()
    // let id = parms.get("id")
    // let title = parms.get("title")
    // let messg = parms.get("messg")
    // 路由query传参
    let param = useParams()
    let { id, title, messg } = param
    return (

        <div>
            <ul>
                <li>id:{id}</li>
                <li>title:{title}</li>
                <li>messg:{messg}</li>
            </ul>
        </div>
    )
}
